package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 计算规则, 确认一个计算链
 *
 * @author zhouch
 * @date 2021/12/10 16:48
 */
@Data
@NoArgsConstructor
@ApiModel("计算规则")
public class TEngineComputeRule {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("规则名称")
    @NotBlank(message = "规则名称不能为空")
    private String name;

    @ApiModelProperty("城市")
    @NotBlank(message = "城市不能为空")
    private String city;

    @ApiModelProperty("区县")
    @NotBlank(message = "区县不能为空")
    private String county;

    /**
     * 计算链ID
     */
    @ApiModelProperty("计算链ID")
    @NotNull(message = "计算链不能为空")
    private Integer chainId;
}
